package cn.chinawyny.boot.bootdemo.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "my.service")
public class MyProperties {

    /**
     * 地址
     */
    private String inetAddress = "127.0.0.1";
}
